﻿using EfDomain.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EfDomain.Entities
{
    /**表拆分——多个实体对应同一张表*/

    public class Order:BaseEntity
    {
        public OrderStatus? Status { get; set; }
        public DetailedOrder DetailedOrder { get; set; }
    }


    public class DetailedOrder:BaseEntity
    {
        public OrderStatus? Status { get; set; }
        public string BillingAddress { get; set; }
        public string ShippingAddress { get; set; }
        public byte[] Version { get; set; }
    }

    public class UserOrder : BaseEntity
    {
        public int UserId { get; set; }
    }
}
